<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<link rel="stylesheet" href="<%=basePath%>css/shou-031.css"
	type="text/css"></link>
<title>淘汰人员页</title>
<style>
</style>

<script type="text/javascript" src="<%=basePath%>js/jquery-1.10.1.js"></script>
<script type="text/javascript" src="<%=basePath%>js/shou.js"></script>
<script type="text/javascript" src="<%=basePath %>js/fenye.js"></script>
<script type="text/javascript">
	function upd(id){
		$.ajax({
			"url":"/kss/eliminate/upd.do",
			"type":"post",
			"data":{"staff_id":id},
			success:function(data){
				var z =eval("("+data+")");
				var html="";
				
				$("#special_taoTai_name").val(z.name); 
				$("#special_taoTai_id").val(z.staffId); 
				
				$("#special_taoTai_reason").val(z.elimReason);
				
				if(data.elimPhase==1){
					$("#special_taoTai_stage").val("第一阶段");
				}else if(data.elimPhase==2){
					$("#special_taoTai_stage").val("第二阶段");
				}else if(data.elimPhase==3){
					$("#special_taoTai_stage").val("第三阶段");
				}
			}
		});
	}
</script>
</head>
<body>

	
	<div class="mask_basic_taoTai">
		<div class="mask_content">

			<p>淘汰实习生</p>
			<form action="post">
				<div>
					<label class="tao_lab" for="taoTai_name">姓名</label> <input
						id="taoTai_name" type="text" value="***">
				</div>
				<div>
					<label class="tao_lab" for="taoTai_stage">淘汰阶段</label> <select
						name="stage" id="taoTai_stage">
						<option style="font-size: 16px;color:#999;">请选择淘汰阶段</option>
						<option style="color: black">阶段一</option>
						<option style="color: black">阶段二</option>
						<option style="color: black">阶段三</option>
					</select>
				</div>
				<div>
					<label class="tao_lab tao_reason" for="taoTai_reason">淘汰原因</label>
					<textarea name="" id="taoTai_reason" cols="41" rows="5"></textarea>
				</div>
				<div class="button">
					<button class="submit" type="submit">确&nbsp&nbsp认</button>
					<span class="cancel_tao">取&nbsp&nbsp消</span>
				</div>
			</form>
		</div>
	</div>
	
	<!--特殊人员-淘汰-修改-->
	<div class="mask_special_taoTai">
		<div class="mask_content">

			<p>修改信息</p>
			<form method="post" action="/kss/eliminate/updEliminate.do">
				<div>
				
					<label class="tao_lab" for="special_taoTai_name">姓名</label> <input
						id="special_taoTai_name"  name="name" type="text" value="${es.name}">
				</div>
				<div>
					<label class="tao_lab" for="special_taoTai_stage">淘汰阶段</label> <select
						name="elimPhase" id="special_taoTai_stage">
						
                        	<option value="1">第一阶段</option>
                            <option value="2">第二阶段</option>
                            <option value="3">第三阶段</option>
                        
                        	
                        	
					</select>
					<input id="special_taoTai_id"  name="staff_id" type="hidden" value="${es.staffId}">
				</div>
				<div>
					<label class="tao_lab tao_reason" for="special_taoTai_reason">淘汰原因</label>
					<textarea name="elimReason" id="special_taoTai_reason" cols="41" rows="5"></textarea>
				</div>
				<div class="button">
					<button class="submit" type="submit">确&nbsp&nbsp认</button>
					<span class="cancel_special_tao">取&nbsp&nbsp消</span>
				</div>
			</form>
		</div>
	</div>


	<!--特殊人员-淘汰--新增-->
	<div class="mask_special_taoTai_new">
		<div class="mask_content">

			<p>淘汰实习生</p>
			<form  method="post" action="/kss/eliminate/addEliminate.do">
				<div>
					<label class="tao_lab" for="special_taoTai_name_new">员工编号</label> <input
						id="special_taoTai_name_new" type="text" name="staffId">
				</div>

			
				<div>
					<label class="tao_lab" for="special_taoTai_stage_new">淘汰阶段</label>
					<select name="elimPhase" id="special_taoTai_stage_new">
						<option style="font-size: 16px;color:#999;">请选择淘汰阶段</option>
						<option style="color: black" value="1">阶段一</option>
						<option style="color: black" value="2">阶段二</option>
						<option style="color: black" value="3">阶段三</option>
					</select>
				</div>
				<div>
					<label class="tao_lab tao_reason" for="special_taoTai_reason_new">淘汰原因</label>
					<textarea name="elimReason" id="special_taoTai_reason_new" cols="41" rows="5"></textarea>
				</div>
				<div class="button">
					<button class="submit" type="submit">确&nbsp&nbsp认</button>
					<span class="cancel_special_tao_new">取&nbsp&nbsp消</span>
				</div>
			</form>
		</div>
	</div>


	<div class="head"></div>
	<div class="content">
		<div class="content_left">
        <p class="clp cl1"><a href = "/kss/login/shouye.do">首页</a></p>
        <div class="cld"></div>
        <p class="clp cl2 "><a>实习生信息</a></p>
        <div class="cld cl2_1">
            <li class="cl_li1 "><a href = "/kss/staff/findAllStaff.do?interviewer=ALL&staff_name=null">基本信息</a></li>
            <li class="cl_li2 "><a href = "/kss/apply/findAllApply.do">请假信息</a></li>
        </div>
        <p class="=clp cl3  "><a>培训信息</a></p>
        <div class="cld cl3_1">

            <li class="cl_li6 " ><a href = "/kss/find/findFirstPhase.do">阶段成绩</a></li>
            <li class="cl_li7 "><a href = "/kss/jieduan/findJieDuan.do">综合查询</a></li>

        </div>
        <p class="clp cl4 _clp_"><a>特殊人员</a></p>
        <div class="cld cl4_1">
            <li class="cl_li4 _cl_li"><a href = "/kss/eliminate/selEliminate.do">淘汰人员</a></li>
            <li class="cl_li5"><a href = "/kss/newCome/getNew.do">新增人员</a></li>
        </div>
        <p class="clp cl5"><a href = "/kss/staff/echarts.do">综合信息</a></p>
        <div  >

        </div>
    </div>

		
		<!--特殊人员-淘汰人员-->

		<div class="content_right5 content_right5_1">
			<div class="cr1">
				<p>特殊人员-淘汰人员</p>
				<table  id="table1">
					<thead>
						<th>姓名</th>
						<th>淘汰阶段</th>	
						<th>淘汰原因</th>
						<th>操作</th>
						<th><a class="special_die_add" style="cursor: pointer">新增</a>
						</th>
					</thead>
					<tbody>
						<c:forEach items="${eliminate}" var="e">
							<tr>
								<td>${e.name}</td>
								
								<c:if test="${e.elimPhase==1}">
							<td>第一阶段
							</td>
						</c:if>
						<c:if test="${e.elimPhase==2}">
							<td>第二阶段
							</td>
						</c:if><c:if test="${e.elimPhase==3}">
							<td>第三阶段
							</td>
						</c:if>
						
								<td>${e.elimReason}</td>
								<td><span class="special_die_edit" style="cursor: pointer"><a onclick="upd('${e.staffId}')">修改</a></span>
								<%-- <a href="/kss/eliminate/upd.do?staff_id=${e.staffId}">修改</a>  撤销</td> --%>
									</td>
							</tr>
						</c:forEach>

					</tbody>
				</table>
			</div>
			<div align="center" style="margin-top:15px">
共<a class="blue" id="sjzl"></a>条记录&nbsp;&nbsp;当前<a class="blue" id="btn0"></a>页&nbsp;&nbsp;&nbsp;
	<a id="btn0"></a>
	<a  href="#" id="btn1">首页</a>
	<a  href="#" id="btn2">上一页</a>
	<a  href="#" id="btn3">下一页</a>
	<a  href="#" id="btn4">尾页</a> &nbsp;&nbsp;
	
	  转到第<input type="text" id="changePage" size="1" maxlength="4" style=" width:30px; text-align:center; border:1px solid #ccc;"/>页
	  <input type="button" id="btn5" value="跳转"/>
</div>
		</div>
		
	</div>
	
</body>
</html>